package com.gxa.modules.pc.fee.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gxa.modules.model.dto.RechargeDetailRecordDto;
import com.gxa.modules.model.dto.RefundSearchDto;
import com.gxa.modules.model.entity.fee.InpatientRechargeRecords;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 住院充值记录表 Mapper 接口
 * </p>
 *
 * @author gxa
 * @since 2022-11-12 05:31:54
 */
@Mapper
public interface InpatientRechargeRecordsMapper extends BaseMapper<InpatientRechargeRecords> {
    public List<RechargeDetailRecordDto> queryListSearch(RefundSearchDto refundSearchDto);


    //根据患者id查询查询住院余额
    Double balanceFromPatient (Integer patientId);

    Integer count(RefundSearchDto refundSearchDto);

    public List<RechargeDetailRecordDto> queryList();
}
